<?php	
$selxx = "select * from $TBL_OPTION order by ord asc";
$resxx = mysql_query($selxx);
$jj=0;
$jd=0;
$bh=0;
$gs=0;
$bq=0;
while($rowxx = mysql_fetch_array($resxx))
{
	if($rowxx[type]==1)//類型
	{
		$typexx = $typexx ."<input type=radio name=type value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==2)//電梯
	{
		$elevatorxx = $elevatorxx ."<input type=radio name=elevator value=$rowxx[title]  />$rowxx[title]";
	}
	if($rowxx[type]==3)//家具
	{	
		++$jj;
		$furniturexx = $furniturexx ."<input type=checkbox name=furniture$jj value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==4)//家電
	{	
		++$jd;
		$wiringxx = $wiringxx ."<input type=checkbox name=wiring$jd value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==5)//來源
	{			
		$source = $source ."<input type=radio name=source value=$rowxx[title]  />$rowxx[title]";
	}
	if($rowxx[type]==6)//租金包含
	{	
		++$bh;
		$baohangxx = $baohangxx ."<input type=checkbox name=baohang$bh value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==7)//公社
	{	
		++$gs;
		$firexx = $firexx ."<input type=checkbox name=fire$gs value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==8)//保全
	{	
		++$bq;
		$baoquanxx = $baoquanxx ."<input type=checkbox name=baoquan$bq value=$rowxx[title] />$rowxx[title]";
	}
	if($rowxx[type]==9)//座向
	{	
		$position = $position ."<input type=radio name=position value=$rowxx[title] />$rowxx[title]";
	}
}

$smarty->assign("typexx",$typexx);
$smarty->assign("elevatorxx",$elevatorxx);
$smarty->assign("furniturexx",$furniturexx);
$smarty->assign("wiringxx",$wiringxx);
$smarty->assign("source",$source);
$smarty->assign("baohangxx",$baohangxx);
$smarty->assign("firexx",$firexx);
$smarty->assign("baoquanxx",$baoquanxx);
$smarty->assign("position",$position);

?>